﻿using System;
using System.Collections.Generic;

namespace RexToy.Cassandra
{
    public static class ExceptionHelper
    {
        public static CassandraException CreateUnknownMarshaler(string javaClass)
        {
            return new CassandraException(javaClass);
        }

        public static ArgumentException CreateReadConsistencyAny()
        {
            return new ArgumentException("Read consistency level can not be [Any].");
        }

        public static InvalidOperationException CreateAccessValueOfSuperColumn()
        {
            return new InvalidOperationException("Access value property of SuperColumn.");
        }

        public static InvalidOperationException CreateUnsupportedOperation()
        {
            throw new InvalidOperationException("Not valid operation.");
        }
    }
}
